import Vue from 'vue';
import Router from 'vue-router';
import Layout from '@/pages/layout';
import Login from '@/pages/login/login';
import Regist from '@/pages/regist/regist';
import Upload from '@/pages/uploadPage/uploadPage';
import formCells from '@/pages/form-cells/form-cells';
import slide from '@/pages/slide/slide';
import noticePage from '@/pages/noticePage/noticePage';
import tab from '@/pages/tab/tab';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: '/',
      component: Layout
    },
    {
      path: '/login',
      name: '/login',
      component: Login
    },
    {
      path: '/regist',
      name: '/regist',
      component: Regist
    },
    {
      path: '/uploadPage',
      name: '/uploadPage',
      component: Upload
    },
    {
      path: '/form-cells',
      name: '/form-cells',
      component: formCells
    },
    {
      path: '/slide',
      name: '/slide',
      component: slide
    },
    {
      path: '/notice',
      name: '/notice',
      component: noticePage
    },
    {
      path: '/tab',
      name: '/tab',
      component: tab
    }
  ]
});
